package cn.wolfcode.luowowo.search.repository;

import cn.wolfcode.luowowo.search.template.StrategyTemplate;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StrategyMongoRepository extends ElasticsearchRepository<StrategyTemplate,Long> {
    Page<StrategyTemplate> findByProvinceId(Long provinceId, Pageable pageable);
    Page<StrategyTemplate> findByCountryId(Long CountryId, Pageable pageable);
    Page<StrategyTemplate> findByThemeId(Long ThemeId, Pageable pageable);

    List<StrategyTemplate> findByDestName(String keyword);
}
